package com.javaoopfive.Order;

public class Master {
    public static void main(String[] args) {
        OrderMaster orderMaster = new OrderMaster();

        /*SFOrder sfOrder = new SFOrder();
        sfOrder.setBmName("顺丰1022号");*/

       /* CKOrder ckOrder = new CKOrder();
        ckOrder.setCkName("1号仓库");*/

        Oreder oreder = orderMaster.toOrderShow();
        if(oreder instanceof SFOrder){
            SFOrder sfOrder =(SFOrder) oreder;
            sfOrder.sendSF();
            oreder.printOrder();
        }else {
            System.out.println("不是SFOrder订单的实例");
        }


    }
}
